package com.en.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;

/**
 * @TableName user
 */
@TableName(value = "user")
@Data
public class User implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     *
     */
    private String mobile;

    /**
     *
     */
    private String truename;

    /**
     *
     */
    private String nickname;

    /**
     *
     */
    private String avatar;

    /**
     * 1：男  2：女
     */
    private Integer gender;

    /**
     *
     */
    private LocalDate birthday;

    /**
     *
     */
    private LocalDateTime createDatetime;

    /**
     *
     */
    private Object buyStageIds;

    /**
     * 用户下一课是哪一课
     */
    private Integer nextClassId;

    /**
     * 1：已注册；2：已付费；-99：已注销；
     */
    private Integer status;

    /**
     *
     */
    private Integer studyWordCount;

    /**
     * 只要用户复习或学习了，就+1。目的：同步多个设备之间的学习进度。
     */
    private Integer studyWordVersion;

    /**
     *
     */
    private Double discount;

    /**
     *
     */
    private LocalDateTime discountStart;

    /**
     *
     */
    private LocalDateTime discountEnd;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}